<?php

Yii::import('zii.widgets.CPortlet');

class TeachingResourcesBox extends CPortlet
{
    public $teachingModel;
    public $resources;
    public function init()
    {
        /**
         * display the resources under the course
         * @author : nonglei
         * @date   : 6/05/2014
         */
        $this->resources = $this->teachingModel->resources;
        //var_dump(count($this->resources));
        $this->contentCssClass="teachingResourcesBox";
        $cs = Yii::app()->getClientScript();
        //$cs->registerCssFile(Yii::app()->baseUrl.'/css/picturesnews.css');
        $cs->registerScriptFile(Yii::app()->baseUrl.'/js/teachingresourcesbox.js');
        parent::init();
    }
    protected function renderContent()
    {
        $this->render('teachingresourcesbox');
    }
}

?>
